home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3112 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: news.erg.cuhk.hk!pmliu
  2. From: pmliu@ee.cuhk.hk (Liu_Pak_Man)
  3. Newsgroups: comp.lang.c++
  4. Subject: Programming RS-232 under WINODWS.. Pls Help.
  5. Date: 22 Jan 1996 08:21:19 GMT
  6. Organization: Engineering Faculty CUHK
  7. Message-ID: <4dvhdv$aau@eng_ser1.erg.cuhk.hk>
  8. NNTP-Posting-Host: ws332n.ee.cuhk.hk
  9.  
  10. Dear all,
  11.  
  12.     I am a student currently working on Asyn. COMM port using bc4.0 for
  13. windows. But I faced a little difficulties.
  14.  
  15. First: I could only find an API command "transmitchar()" to send a char to
  16.     the COM port. But I cannot find the counterpart, receive function !!
  17.     Is there no such a function ?
  18.  
  19. Second: After that i tried to call _bios_serialcom() and inportb() in Bios.h
  20.     to ease the case. But there are even more problems.
  21.  
  22.     1. Error: undefined symbol _bios_serialcom() ???!!! But it's really
  23.           exist in Bios.h .
  24.  
  25.     2. Inportb() returns nothing !!
  26.  
  27. So is there a receiving queue used to buffer the receiving bytes ? If it is,
  28. what simple method can I retrieve the data ? 
  29.  
  30. Please help.. by e-mailing to me 
  31. Any participation in answering will be appreciate
  32.  
  33. Thanks
  34.  
  35. CU EE
  36.